import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 18,
    menuWidth: 300,
    menu: true,
    header: true,
    addBtn: false,
    addBtnText: '新增',
    editBtn: false,
    delBtn: false,
    viewBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '洗舱站名称',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '是否支持加油服务',
        prop: 'p2',
        dicData: [
          {label: '是', value: '1'},
          {label: '否', value: '0'},
        ],
        filterable: true,
        type: 'select',
        overHidden: true,
        addDisplay: false
      },
      {
        label: '是否支持加水服务',
        prop: 'p3',
        dicData: [
          {label: '是', value: '1'},
          {label: '否', value: '0'},
        ],
        filterable: true,
        type: 'select',
        overHidden: true,
        addDisplay: false
      },
      {
        label: '是否支持物料备件供应',
        prop: 'p4',
        dicData: [
          {label: '是', value: '1'},
          {label: '否', value: '0'},
        ],
        filterable: true,
        type: 'select',
        overHidden: true,
        addDisplay: false
      },
    ]
  }
}
